
import {post,get} from "./ajax"

//服务层


export const http = {
    //注册
    register:body=>post("/yiwu/signup",body),
    //登录
    login:body=>post("/yiwu/login",body),
    //发送验证码
    sendcaptcha:params=>get("/yiwu/sendcaptcha",params), 
    //校验验证码
    verifycaptcha:params=>get("/yiwu/verifycaptcha",params),

    //获取个人信息成功
    getuserinfo:params=>get("/yiwu/getuserinfo",params),
    //上传照片
    sendAvatar:body=>post("/yiwu/send-avatar",body),

    //获取卖座数据
    getCity:(params,headers)=>get("/gateway?k=8573699",params,headers),

    //自定义接口获取卖座数据
    getmaizuodata:(params,headers)=>get("/yiwu/getmaizuodata",params,headers),

    postmaizuodata:(body,headers)=>post("/yiwu/postmaizuodata",body,headers),

    updatapass:(body,headers)=>post("/yiwu/updatapass",body,headers)
}
